package com.study.enumeration;

public enum StatusEnum {

	/**
	 * 正常
	 */
	正常("1", "正常"),
	/**
	 * 停用
	 */
	停用("2", "停用");

	/**
	 * 成员变量
	 */
	private String code;
	private String name;

	/**
	 * @param code
	 * @param name
	 */
	private StatusEnum(String code, String name) {
		this.code = code;
		this.name = name;
	}

	/**
	 * @return Returns the code.
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code The code to set.
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return Returns the name.
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name The name to set.
	 */
	public void setName(String name) {
		this.name = name;
	}

}
